<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>编辑阵容类型</title>
    <style>
        .two-part-label{
            width: 200px !important;
        }
    </style>
</head>
<body>
<script type="text/html" id="form">
    <input type="hidden" name="id" value="{{ d.id }}" />
    <div class="mainBox">
        <div class="main-container">
            <div class="layui-form-item">
                <label class="layui-form-label">
                    <text style="color:red;">*</text>
                    阵容名称</label>
                <div class="layui-input-block">
                    <input type="text" name="team_name" placeholder="请输入阵容名称" class="layui-input" lay-verify="required"
                           autocomplete="off" value="{{ d.team_name }}">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">
                    自定义标签</label>
                <div class="layui-input-block">
                    <input type="text" name="tag" placeholder="请输入自定义标签" class="layui-input"
                           autocomplete="off" value="{{ d.tag }}">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">
                    <text style="color:red;">*</text>
                    作者</label>
                <div class="layui-input-block">
                    <input type="text"   class="layui-input"
                           autocomplete="off" value="{{ d.author_name }}" disabled>
                </div>
            </div>


<!--            <div class="layui-form-item">-->
<!--                <label class="layui-form-label">作者</label>-->
<!--                <div class="layui-input-block">-->
<!--                    <div class="xmSelect"-->
<!--                         data-name="author_id"-->
<!--                         data-sourceType="route"-->
<!--                         data-source="/admin.genshinteam.author/index"-->
<!--                         data-textField="author_name"-->
<!--                         data-valueField="id"-->
<!--                         data-paging="true"-->
<!--                         data-radio="true"-->
<!--                         data-layVerify="required"-->
<!--                         data-direction="down"-->
<!--                         data-selected="{{ d.author_id }}"-->
<!--                    ></div>-->
<!--                </div>-->
<!--            </div>-->


            <div class="layui-form-item">
                <label class="layui-form-label"><text style="color:red;">*</text>通关关卡</label>
                <div class="layui-input-block">
                    <div class="xmSelect"
                         data-name="keywords"
                         data-sourceType="route"
                         data-source="/admin.genshinteam.category/index"
                         data-params='{"search_param":{"is_show":{"value":1,"condition":"="}}}'
                         data-sourceTree="true"
                         data-radio="false"
                         data-max="3"
                         data-textField="name"
                         data-valueField="name"
                         data-selected="{{=d.keywords}}"
                    ></div>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label"><text style="color:red;">*</text>阵容</label>
                <div class="layui-input-block">
                    <div class="layui-panel" style="padding: 5px;">
                        <label class="layui-btn layui-btn-primary layui-border-green" onclick="showTeamBox()" style="text-align: left !important;">上行阵容</label>
                        <blockquote class="layui-elem-quote" style="margin-top: 10px">位置1</blockquote>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">角色</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="top_main_role_id"
                                         data-sourceType="route"
                                         data-source="/admin.genshinteam.role/index"
                                         data-textField="role_name"
                                         data-valueField="id"
                                         data-paging="true"
                                         data-radio="true"
                                         data-layVerify="required"
                                         data-direction="down"
                                         data-selected="{{=d.top_main_role_id}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">位置</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="top_main_role_pos"
                                         data-sourceType="data"
                                         data-radio="true"
                                         data-source="[{name:'主C',value:'主C'},{name:'副C',value:'副C'},{name:'辅助',value:'辅助'},{name:'治疗',value:'治疗'}]"
                                         data-selected="{{=d.top_main_role_pos}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">武器</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="top_main_role_weapon"
                                         data-sourceType="route"
                                         data-source="/admin.genshinteam.weapon/weapon"
                                         data-textField="name"
                                         data-valueField="weapon_id"
                                         data-paging="true"
                                         data-radio="true"
                                         data-layVerify="required"
                                         data-direction="down"
                                         data-selected="{{=d.top_main_role_weapon}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">圣遗物</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="top_main_role_relics"
                                         data-sourceType="route"
                                         data-source="/admin.genshinteam.relics/relics"
                                         data-textField="relics_name"
                                         data-valueField="id"
                                         data-paging="true"
                                         data-radio="false"
                                         data-max="2"
                                         data-layVerify="required"
                                         data-direction="down"
                                         data-selected="{{=d.top_main_role_relics}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">主词条</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-layVerify="require"
                                         data-name="top_main_role_tag"
                                         data-sourceType="data"
                                         data-radio="false"
                                         data-max="3"
                                         data-source="[{'value' : '生命值','name' : '生命值'},{'value' : '攻击力','name' : '攻击力'},{'value' : '攻击力百分比','name' : '攻击力百分比'},{'value' : '生命值百分比','name' : '生命值百分比'},{'value' : '防御力百分比','name' : '防御力百分比'},{'value' : '元素精通','name' : '元素精通'},{'value' : '元素充能效率','name' : '元素充能效率'},{'value' : '暴击率','name' : '暴击率'},{'value' : '暴击伤害','name' : '暴击伤害'},{'value' : '火元素伤害加成','name' : '火元素伤害加成'},{'value' : '风元素伤害加成','name' : '风元素伤害加成'},{'value' : '水元素伤害加成','name' : '水元素伤害加成'},{'value' : '雷元素伤害加成','name' : '雷元素伤害加成'},{'value' : '冰元素伤害加成','name' : '冰元素伤害加成'},{'value' : '岩元素伤害加成','name' : '岩元素伤害加成'},{'value' : '草元素伤害加成','name' : '草元素伤害加成'},{'value' : '物理伤害加成','name' : '物理伤害加成'},{'value' : '治疗加成','name' : '治疗加成'},{'value' : '防御力','name' : '防御力'}]"
                                         data-selected="{{=d.top_main_role_tag}}"
                                    ></div>
                                </div>
                            </div>

                            <div class="layui-inline">
                                <label class="layui-form-label">副词条推荐</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-layVerify="require"
                                         data-name="top_main_role_recommend"
                                         data-sourceType="data"
                                         data-radio="false"
                                         data-source="[{'value' : '生命值','name' : '生命值'},{'value' : '攻击力','name' : '攻击力'},{'value' : '攻击力百分比','name' : '攻击力百分比'},{'value' : '生命值百分比','name' : '生命值百分比'},{'value' : '防御力百分比','name' : '防御力百分比'},{'value' : '元素精通','name' : '元素精通'},{'value' : '元素充能效率','name' : '元素充能效率'},{'value' : '暴击率','name' : '暴击率'},{'value' : '暴击伤害','name' : '暴击伤害'},{'value' : '火元素伤害加成','name' : '火元素伤害加成'},{'value' : '风元素伤害加成','name' : '风元素伤害加成'},{'value' : '水元素伤害加成','name' : '水元素伤害加成'},{'value' : '雷元素伤害加成','name' : '雷元素伤害加成'},{'value' : '冰元素伤害加成','name' : '冰元素伤害加成'},{'value' : '岩元素伤害加成','name' : '岩元素伤害加成'},{'value' : '草元素伤害加成','name' : '草元素伤害加成'},{'value' : '物理伤害加成','name' : '物理伤害加成'},{'value' : '治疗加成','name' : '治疗加成'},{'value' : '防御力','name' : '防御力'}]"
                                         data-selected="{{=d.top_main_role_recommend}}"
                                    ></div>
                                </div>
                            </div>
                        </div>
                        <blockquote class="layui-elem-quote">位置2</blockquote>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">角色</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="top_vice_role_id"
                                         data-sourceType="route"
                                         data-source="/admin.genshinteam.role/index"
                                         data-textField="role_name"
                                         data-valueField="id"
                                         data-paging="true"
                                         data-radio="true"
                                         data-layVerify="required"
                                         data-direction="down"
                                         data-selected="{{=d.top_vice_role_id}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">位置</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="top_vice_role_pos"
                                         data-sourceType="data"
                                         data-radio="true"
                                         data-source="[{name:'主C',value:'主C'},{name:'副C',value:'副C'},{name:'辅助',value:'辅助'},{name:'治疗',value:'治疗'}]"
                                         data-selected="{{=d.top_vice_role_pos}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">武器</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="top_vice_role_weapon"
                                         data-sourceType="route"
                                         data-source="/admin.genshinteam.weapon/weapon"
                                         data-textField="name"
                                         data-valueField="weapon_id"
                                         data-paging="true"
                                         data-radio="true"
                                         data-layVerify="required"
                                         data-direction="down"
                                         data-selected="{{=d.top_vice_role_weapon}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">圣遗物</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="top_vice_role_relics"
                                         data-sourceType="route"
                                         data-source="/admin.genshinteam.relics/relics"
                                         data-textField="relics_name"
                                         data-valueField="id"
                                         data-paging="true"
                                         data-radio="false"
                                         data-max="2"
                                         data-layVerify="required"
                                         data-direction="down"
                                         data-selected="{{=d.top_vice_role_relics}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">主词条</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-layVerify="require"
                                         data-name="top_vice_role_tag"
                                         data-sourceType="data"
                                         data-radio="false"
                                         data-max="3"
                                         data-source="[{'value' : '生命值','name' : '生命值'},{'value' : '攻击力','name' : '攻击力'},{'value' : '攻击力百分比','name' : '攻击力百分比'},{'value' : '生命值百分比','name' : '生命值百分比'},{'value' : '防御力百分比','name' : '防御力百分比'},{'value' : '元素精通','name' : '元素精通'},{'value' : '元素充能效率','name' : '元素充能效率'},{'value' : '暴击率','name' : '暴击率'},{'value' : '暴击伤害','name' : '暴击伤害'},{'value' : '火元素伤害加成','name' : '火元素伤害加成'},{'value' : '风元素伤害加成','name' : '风元素伤害加成'},{'value' : '水元素伤害加成','name' : '水元素伤害加成'},{'value' : '雷元素伤害加成','name' : '雷元素伤害加成'},{'value' : '冰元素伤害加成','name' : '冰元素伤害加成'},{'value' : '岩元素伤害加成','name' : '岩元素伤害加成'},{'value' : '草元素伤害加成','name' : '草元素伤害加成'},{'value' : '物理伤害加成','name' : '物理伤害加成'},{'value' : '治疗加成','name' : '治疗加成'},{'value' : '防御力','name' : '防御力'}]"

                                         data-selected="{{=d.top_vice_role_tag}}"
                                    ></div>
                                </div>
                            </div>

                            <div class="layui-inline">
                                <label class="layui-form-label">副词条推荐</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-layVerify="require"
                                         data-name="top_vice_role_recommend"
                                         data-sourceType="data"
                                         data-radio="false"
                                         data-source="[{'value' : '生命值','name' : '生命值'},{'value' : '攻击力','name' : '攻击力'},{'value' : '攻击力百分比','name' : '攻击力百分比'},{'value' : '生命值百分比','name' : '生命值百分比'},{'value' : '防御力百分比','name' : '防御力百分比'},{'value' : '元素精通','name' : '元素精通'},{'value' : '元素充能效率','name' : '元素充能效率'},{'value' : '暴击率','name' : '暴击率'},{'value' : '暴击伤害','name' : '暴击伤害'},{'value' : '火元素伤害加成','name' : '火元素伤害加成'},{'value' : '风元素伤害加成','name' : '风元素伤害加成'},{'value' : '水元素伤害加成','name' : '水元素伤害加成'},{'value' : '雷元素伤害加成','name' : '雷元素伤害加成'},{'value' : '冰元素伤害加成','name' : '冰元素伤害加成'},{'value' : '岩元素伤害加成','name' : '岩元素伤害加成'},{'value' : '草元素伤害加成','name' : '草元素伤害加成'},{'value' : '物理伤害加成','name' : '物理伤害加成'},{'value' : '治疗加成','name' : '治疗加成'},{'value' : '防御力','name' : '防御力'}]"

                                         data-selected="{{=d.top_vice_role_recommend}}"
                                    ></div>
                                </div>
                            </div>
                        </div>
                        <blockquote class="layui-elem-quote">位置3</blockquote>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">角色</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="top_assist1_role_id"
                                         data-sourceType="route"
                                         data-source="/admin.genshinteam.role/index"
                                         data-textField="role_name"
                                         data-valueField="id"
                                         data-paging="true"
                                         data-radio="true"
                                         data-layVerify="required"
                                         data-direction="down"
                                         data-selected="{{=d.top_assist1_role_id}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">位置</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="top_assist1_role_pos"
                                         data-sourceType="data"
                                         data-radio="true"
                                         data-source="[{name:'主C',value:'主C'},{name:'副C',value:'副C'},{name:'辅助',value:'辅助'},{name:'治疗',value:'治疗'}]"
                                         data-selected="{{=d.top_assist1_role_pos}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">武器</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="top_assist1_role_weapon"
                                         data-sourceType="route"
                                         data-source="/admin.genshinteam.weapon/weapon"
                                         data-textField="name"
                                         data-valueField="weapon_id"
                                         data-paging="true"
                                         data-radio="true"
                                         data-layVerify="required"
                                         data-direction="down"
                                         data-selected="{{=d.top_assist1_role_weapon}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">圣遗物</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="top_assist1_role_relics"
                                         data-sourceType="route"
                                         data-source="/admin.genshinteam.relics/relics"
                                         data-textField="relics_name"
                                         data-valueField="id"
                                         data-paging="true"
                                         data-radio="false"
                                         data-max="2"
                                         data-layVerify="required"
                                         data-direction="down"
                                         data-selected="{{=d.top_assist1_role_relics}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">主词条</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-layVerify="require"
                                         data-name="top_assist1_role_tag"
                                         data-sourceType="data"
                                         data-radio="false"
                                         data-max="3"
                                         data-source="[{'value' : '生命值','name' : '生命值'},{'value' : '攻击力','name' : '攻击力'},{'value' : '攻击力百分比','name' : '攻击力百分比'},{'value' : '生命值百分比','name' : '生命值百分比'},{'value' : '防御力百分比','name' : '防御力百分比'},{'value' : '元素精通','name' : '元素精通'},{'value' : '元素充能效率','name' : '元素充能效率'},{'value' : '暴击率','name' : '暴击率'},{'value' : '暴击伤害','name' : '暴击伤害'},{'value' : '火元素伤害加成','name' : '火元素伤害加成'},{'value' : '风元素伤害加成','name' : '风元素伤害加成'},{'value' : '水元素伤害加成','name' : '水元素伤害加成'},{'value' : '雷元素伤害加成','name' : '雷元素伤害加成'},{'value' : '冰元素伤害加成','name' : '冰元素伤害加成'},{'value' : '岩元素伤害加成','name' : '岩元素伤害加成'},{'value' : '草元素伤害加成','name' : '草元素伤害加成'},{'value' : '物理伤害加成','name' : '物理伤害加成'},{'value' : '治疗加成','name' : '治疗加成'},{'value' : '防御力','name' : '防御力'}]"

                                         data-selected="{{=d.top_assist1_role_tag}}"
                                    ></div>
                                </div>
                            </div>

                            <div class="layui-inline">
                                <label class="layui-form-label">副词条推荐</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-layVerify="require"
                                         data-name="top_assist1_role_recommend"
                                         data-sourceType="data"
                                         data-radio="false"
                                         data-source="[{'value' : '生命值','name' : '生命值'},{'value' : '攻击力','name' : '攻击力'},{'value' : '攻击力百分比','name' : '攻击力百分比'},{'value' : '生命值百分比','name' : '生命值百分比'},{'value' : '防御力百分比','name' : '防御力百分比'},{'value' : '元素精通','name' : '元素精通'},{'value' : '元素充能效率','name' : '元素充能效率'},{'value' : '暴击率','name' : '暴击率'},{'value' : '暴击伤害','name' : '暴击伤害'},{'value' : '火元素伤害加成','name' : '火元素伤害加成'},{'value' : '风元素伤害加成','name' : '风元素伤害加成'},{'value' : '水元素伤害加成','name' : '水元素伤害加成'},{'value' : '雷元素伤害加成','name' : '雷元素伤害加成'},{'value' : '冰元素伤害加成','name' : '冰元素伤害加成'},{'value' : '岩元素伤害加成','name' : '岩元素伤害加成'},{'value' : '草元素伤害加成','name' : '草元素伤害加成'},{'value' : '物理伤害加成','name' : '物理伤害加成'},{'value' : '治疗加成','name' : '治疗加成'},{'value' : '防御力','name' : '防御力'}]"

                                         data-selected="{{=d.top_assist1_role_recommend}}"
                                    ></div>
                                </div>
                            </div>
                        </div>
                        <blockquote class="layui-elem-quote">位置4</blockquote>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">角色</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="top_assist2_role_id"
                                         data-sourceType="route"
                                         data-source="/admin.genshinteam.role/index"
                                         data-textField="role_name"
                                         data-valueField="id"
                                         data-paging="true"
                                         data-radio="true"
                                         data-layVerify="required"
                                         data-direction="down"
                                         data-selected="{{=d.top_assist2_role_id}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">位置</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="top_assist2_role_pos"
                                         data-sourceType="data"
                                         data-radio="true"
                                         data-source="[{name:'主C',value:'主C'},{name:'副C',value:'副C'},{name:'辅助',value:'辅助'},{name:'治疗',value:'治疗'}]"
                                         data-selected="{{=d.top_assist2_role_pos}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">武器</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="top_assist2_role_weapon"
                                         data-sourceType="route"
                                         data-source="/admin.genshinteam.weapon/weapon"
                                         data-textField="name"
                                         data-valueField="weapon_id"
                                         data-paging="true"
                                         data-radio="true"
                                         data-layVerify="required"
                                         data-direction="down"
                                         data-selected="{{=d.top_assist2_role_weapon}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">圣遗物</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="top_assist2_role_relics"
                                         data-sourceType="route"
                                         data-source="/admin.genshinteam.relics/relics"
                                         data-textField="relics_name"
                                         data-valueField="id"
                                         data-paging="true"
                                         data-radio="false"
                                         data-max="2"
                                         data-layVerify="required"
                                         data-direction="down"
                                         data-selected="{{=d.top_assist2_role_relics}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">主词条</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-layVerify="require"
                                         data-name="top_assist2_role_tag"
                                         data-sourceType="data"
                                         data-radio="false"
                                         data-max="3"
                                         data-source="[{'value' : '生命值','name' : '生命值'},{'value' : '攻击力','name' : '攻击力'},{'value' : '攻击力百分比','name' : '攻击力百分比'},{'value' : '生命值百分比','name' : '生命值百分比'},{'value' : '防御力百分比','name' : '防御力百分比'},{'value' : '元素精通','name' : '元素精通'},{'value' : '元素充能效率','name' : '元素充能效率'},{'value' : '暴击率','name' : '暴击率'},{'value' : '暴击伤害','name' : '暴击伤害'},{'value' : '火元素伤害加成','name' : '火元素伤害加成'},{'value' : '风元素伤害加成','name' : '风元素伤害加成'},{'value' : '水元素伤害加成','name' : '水元素伤害加成'},{'value' : '雷元素伤害加成','name' : '雷元素伤害加成'},{'value' : '冰元素伤害加成','name' : '冰元素伤害加成'},{'value' : '岩元素伤害加成','name' : '岩元素伤害加成'},{'value' : '草元素伤害加成','name' : '草元素伤害加成'},{'value' : '物理伤害加成','name' : '物理伤害加成'},{'value' : '治疗加成','name' : '治疗加成'},{'value' : '防御力','name' : '防御力'}]"

                                         data-selected="{{=d.top_assist2_role_tag}}"
                                    ></div>
                                </div>
                            </div>

                            <div class="layui-inline">
                                <label class="layui-form-label">副词条推荐</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-layVerify="require"
                                         data-name="top_assist2_role_recommend"
                                         data-sourceType="data"
                                         data-radio="false"
                                         data-source="[{'value' : '生命值','name' : '生命值'},{'value' : '攻击力','name' : '攻击力'},{'value' : '攻击力百分比','name' : '攻击力百分比'},{'value' : '生命值百分比','name' : '生命值百分比'},{'value' : '防御力百分比','name' : '防御力百分比'},{'value' : '元素精通','name' : '元素精通'},{'value' : '元素充能效率','name' : '元素充能效率'},{'value' : '暴击率','name' : '暴击率'},{'value' : '暴击伤害','name' : '暴击伤害'},{'value' : '火元素伤害加成','name' : '火元素伤害加成'},{'value' : '风元素伤害加成','name' : '风元素伤害加成'},{'value' : '水元素伤害加成','name' : '水元素伤害加成'},{'value' : '雷元素伤害加成','name' : '雷元素伤害加成'},{'value' : '冰元素伤害加成','name' : '冰元素伤害加成'},{'value' : '岩元素伤害加成','name' : '岩元素伤害加成'},{'value' : '草元素伤害加成','name' : '草元素伤害加成'},{'value' : '物理伤害加成','name' : '物理伤害加成'},{'value' : '治疗加成','name' : '治疗加成'},{'value' : '防御力','name' : '防御力'}]"

                                         data-selected="{{=d.top_assist2_role_recommend}}"
                                    ></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-input-block layui-anim" data-anim="layui-anim-down" id="under_team" is_show="0" style="display: none">
                    <div class="layui-panel" style="padding: 5px;margin-top: 20px">
                        <label class="layui-btn layui-btn-primary layui-border-green" style="text-align: left !important;">下行阵容</label>
                        <blockquote class="layui-elem-quote" style="margin-top: 10px">位置1</blockquote>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">角色</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="bottom_main_role_id"
                                         data-sourceType="route"
                                         data-source="/admin.genshinteam.role/index"
                                         data-textField="role_name"
                                         data-valueField="id"
                                         data-paging="true"
                                         data-radio="true"
                                         data-direction="down"
                                         data-selected="{{=d.bottom_main_role_id}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">位置</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="bottom_main_role_pos"
                                         data-sourceType="data"
                                         data-radio="true"
                                         data-source="[{name:'主C',value:'主C'},{name:'副C',value:'副C'},{name:'辅助',value:'辅助'},{name:'治疗',value:'治疗'}]"
                                         data-selected="{{=d.bottom_main_role_pos}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">武器</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="bottom_main_role_weapon"
                                         data-sourceType="route"
                                         data-source="/admin.genshinteam.weapon/weapon"
                                         data-textField="name"
                                         data-valueField="weapon_id"
                                         data-paging="true"
                                         data-radio="true"
                                         data-direction="down"
                                         data-selected="{{=d.bottom_main_role_weapon}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">圣遗物</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="bottom_main_role_relics"
                                         data-sourceType="route"
                                         data-source="/admin.genshinteam.relics/relics"
                                         data-textField="relics_name"
                                         data-valueField="id"
                                         data-paging="true"
                                         data-radio="false"
                                         data-max="2"
                                         data-direction="down"
                                         data-selected="{{=d.bottom_main_role_relics}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">主词条</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="bottom_main_role_tag"
                                         data-sourceType="data"
                                         data-radio="false"
                                         data-max="3"
                                         data-source="[{'value' : '生命值','name' : '生命值'},{'value' : '攻击力','name' : '攻击力'},{'value' : '攻击力百分比','name' : '攻击力百分比'},{'value' : '生命值百分比','name' : '生命值百分比'},{'value' : '防御力百分比','name' : '防御力百分比'},{'value' : '元素精通','name' : '元素精通'},{'value' : '元素充能效率','name' : '元素充能效率'},{'value' : '暴击率','name' : '暴击率'},{'value' : '暴击伤害','name' : '暴击伤害'},{'value' : '火元素伤害加成','name' : '火元素伤害加成'},{'value' : '风元素伤害加成','name' : '风元素伤害加成'},{'value' : '水元素伤害加成','name' : '水元素伤害加成'},{'value' : '雷元素伤害加成','name' : '雷元素伤害加成'},{'value' : '冰元素伤害加成','name' : '冰元素伤害加成'},{'value' : '岩元素伤害加成','name' : '岩元素伤害加成'},{'value' : '草元素伤害加成','name' : '草元素伤害加成'},{'value' : '物理伤害加成','name' : '物理伤害加成'},{'value' : '治疗加成','name' : '治疗加成'},{'value' : '防御力','name' : '防御力'}]"

                                         data-selected="{{=d.bottom_main_role_tag}}"
                                    ></div>
                                </div>
                            </div>

                            <div class="layui-inline">
                                <label class="layui-form-label">副词条推荐</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-layVerify="require"
                                         data-name="bottom_main_role_recommend"
                                         data-sourceType="data"
                                         data-radio="false"
                                         data-source="[{'value' : '生命值','name' : '生命值'},{'value' : '攻击力','name' : '攻击力'},{'value' : '攻击力百分比','name' : '攻击力百分比'},{'value' : '生命值百分比','name' : '生命值百分比'},{'value' : '防御力百分比','name' : '防御力百分比'},{'value' : '元素精通','name' : '元素精通'},{'value' : '元素充能效率','name' : '元素充能效率'},{'value' : '暴击率','name' : '暴击率'},{'value' : '暴击伤害','name' : '暴击伤害'},{'value' : '火元素伤害加成','name' : '火元素伤害加成'},{'value' : '风元素伤害加成','name' : '风元素伤害加成'},{'value' : '水元素伤害加成','name' : '水元素伤害加成'},{'value' : '雷元素伤害加成','name' : '雷元素伤害加成'},{'value' : '冰元素伤害加成','name' : '冰元素伤害加成'},{'value' : '岩元素伤害加成','name' : '岩元素伤害加成'},{'value' : '草元素伤害加成','name' : '草元素伤害加成'},{'value' : '物理伤害加成','name' : '物理伤害加成'},{'value' : '治疗加成','name' : '治疗加成'},{'value' : '防御力','name' : '防御力'}]"

                                         data-selected="{{=d.bottom_main_role_recommend}}"
                                    ></div>
                                </div>
                            </div>
                        </div>
                        <blockquote class="layui-elem-quote">位置2</blockquote>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">角色</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="bottom_vice_role_id"
                                         data-sourceType="route"
                                         data-source="/admin.genshinteam.role/index"
                                         data-textField="role_name"
                                         data-valueField="id"
                                         data-paging="true"
                                         data-radio="true"
                                         data-direction="down"
                                         data-selected="{{=d.bottom_vice_role_id}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">位置</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="bottom_vice_role_pos"
                                         data-sourceType="data"
                                         data-radio="true"
                                         data-source="[{name:'主C',value:'主C'},{name:'副C',value:'副C'},{name:'辅助',value:'辅助'},{name:'治疗',value:'治疗'}]"
                                         data-selected="{{=d.bottom_vice_role_pos}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">武器</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="bottom_vice_role_weapon"
                                         data-sourceType="route"
                                         data-source="/admin.genshinteam.weapon/weapon"
                                         data-textField="name"
                                         data-valueField="weapon_id"
                                         data-paging="true"
                                         data-radio="true"
                                         data-direction="down"
                                         data-selected="{{=d.bottom_vice_role_weapon}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">圣遗物</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="bottom_vice_role_relics"
                                         data-sourceType="route"
                                         data-source="/admin.genshinteam.relics/relics"
                                         data-textField="relics_name"
                                         data-valueField="id"
                                         data-paging="true"
                                         data-radio="false"
                                         data-max="2"
                                         data-direction="down"
                                         data-selected="{{=d.bottom_vice_role_relics}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">主词条</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="bottom_vice_role_tag"
                                         data-sourceType="data"
                                         data-radio="false"
                                         data-max="3"
                                         data-source="[{'value' : '生命值','name' : '生命值'},{'value' : '攻击力','name' : '攻击力'},{'value' : '攻击力百分比','name' : '攻击力百分比'},{'value' : '生命值百分比','name' : '生命值百分比'},{'value' : '防御力百分比','name' : '防御力百分比'},{'value' : '元素精通','name' : '元素精通'},{'value' : '元素充能效率','name' : '元素充能效率'},{'value' : '暴击率','name' : '暴击率'},{'value' : '暴击伤害','name' : '暴击伤害'},{'value' : '火元素伤害加成','name' : '火元素伤害加成'},{'value' : '风元素伤害加成','name' : '风元素伤害加成'},{'value' : '水元素伤害加成','name' : '水元素伤害加成'},{'value' : '雷元素伤害加成','name' : '雷元素伤害加成'},{'value' : '冰元素伤害加成','name' : '冰元素伤害加成'},{'value' : '岩元素伤害加成','name' : '岩元素伤害加成'},{'value' : '草元素伤害加成','name' : '草元素伤害加成'},{'value' : '物理伤害加成','name' : '物理伤害加成'},{'value' : '治疗加成','name' : '治疗加成'},{'value' : '防御力','name' : '防御力'}]"

                                         data-selected="{{=d.bottom_vice_role_tag}}"
                                    ></div>
                                </div>
                            </div>

                            <div class="layui-inline">
                                <label class="layui-form-label">副词条推荐</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-layVerify="require"
                                         data-name="bottom_vice_role_recommend"
                                         data-sourceType="data"
                                         data-radio="false"
                                         data-source="[{'value' : '生命值','name' : '生命值'},{'value' : '攻击力','name' : '攻击力'},{'value' : '攻击力百分比','name' : '攻击力百分比'},{'value' : '生命值百分比','name' : '生命值百分比'},{'value' : '防御力百分比','name' : '防御力百分比'},{'value' : '元素精通','name' : '元素精通'},{'value' : '元素充能效率','name' : '元素充能效率'},{'value' : '暴击率','name' : '暴击率'},{'value' : '暴击伤害','name' : '暴击伤害'},{'value' : '火元素伤害加成','name' : '火元素伤害加成'},{'value' : '风元素伤害加成','name' : '风元素伤害加成'},{'value' : '水元素伤害加成','name' : '水元素伤害加成'},{'value' : '雷元素伤害加成','name' : '雷元素伤害加成'},{'value' : '冰元素伤害加成','name' : '冰元素伤害加成'},{'value' : '岩元素伤害加成','name' : '岩元素伤害加成'},{'value' : '草元素伤害加成','name' : '草元素伤害加成'},{'value' : '物理伤害加成','name' : '物理伤害加成'},{'value' : '治疗加成','name' : '治疗加成'},{'value' : '防御力','name' : '防御力'}]"

                                         data-selected="{{=d.bottom_vice_role_recommend}}"
                                    ></div>
                                </div>
                            </div>
                        </div>
                        <blockquote class="layui-elem-quote">位置3</blockquote>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">角色</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="bottom_assist1_role_id"
                                         data-sourceType="route"
                                         data-source="/admin.genshinteam.role/index"
                                         data-textField="role_name"
                                         data-valueField="id"
                                         data-paging="true"
                                         data-radio="true"
                                         data-direction="down"
                                         data-selected="{{=d.bottom_assist1_role_id}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">位置</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="bottom_assist1_role_pos"
                                         data-sourceType="data"
                                         data-radio="true"
                                         data-source="[{name:'主C',value:'主C'},{name:'副C',value:'副C'},{name:'辅助',value:'辅助'},{name:'治疗',value:'治疗'}]"
                                         data-selected="{{=d.bottom_assist1_role_pos}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">武器</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="bottom_assist1_role_weapon"
                                         data-sourceType="route"
                                         data-source="/admin.genshinteam.weapon/weapon"
                                         data-textField="name"
                                         data-valueField="weapon_id"
                                         data-paging="true"
                                         data-radio="true"
                                         data-direction="down"
                                         data-selected="{{=d.bottom_assist1_role_weapon}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">圣遗物</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="bottom_assist1_role_relics"
                                         data-sourceType="route"
                                         data-source="/admin.genshinteam.relics/relics"
                                         data-textField="relics_name"
                                         data-valueField="id"
                                         data-paging="true"
                                         data-radio="false"
                                         data-max="2"
                                         data-direction="down"
                                         data-selected="{{=d.bottom_assist1_role_relics}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">主词条</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="bottom_assist1_role_tag"
                                         data-sourceType="data"
                                         data-radio="false"
                                         data-max="3"
                                         data-source="[{'value' : '生命值','name' : '生命值'},{'value' : '攻击力','name' : '攻击力'},{'value' : '攻击力百分比','name' : '攻击力百分比'},{'value' : '生命值百分比','name' : '生命值百分比'},{'value' : '防御力百分比','name' : '防御力百分比'},{'value' : '元素精通','name' : '元素精通'},{'value' : '元素充能效率','name' : '元素充能效率'},{'value' : '暴击率','name' : '暴击率'},{'value' : '暴击伤害','name' : '暴击伤害'},{'value' : '火元素伤害加成','name' : '火元素伤害加成'},{'value' : '风元素伤害加成','name' : '风元素伤害加成'},{'value' : '水元素伤害加成','name' : '水元素伤害加成'},{'value' : '雷元素伤害加成','name' : '雷元素伤害加成'},{'value' : '冰元素伤害加成','name' : '冰元素伤害加成'},{'value' : '岩元素伤害加成','name' : '岩元素伤害加成'},{'value' : '草元素伤害加成','name' : '草元素伤害加成'},{'value' : '物理伤害加成','name' : '物理伤害加成'},{'value' : '治疗加成','name' : '治疗加成'},{'value' : '防御力','name' : '防御力'}]"

                                         data-selected="{{=d.bottom_assist1_role_tag}}"
                                    ></div>
                                </div>
                            </div>

                            <div class="layui-inline">
                                <label class="layui-form-label">副词条推荐</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-layVerify="require"
                                         data-name="bottom_assist1_role_recommend"
                                         data-sourceType="data"
                                         data-radio="false"
                                         data-source="[{'value' : '生命值','name' : '生命值'},{'value' : '攻击力','name' : '攻击力'},{'value' : '攻击力百分比','name' : '攻击力百分比'},{'value' : '生命值百分比','name' : '生命值百分比'},{'value' : '防御力百分比','name' : '防御力百分比'},{'value' : '元素精通','name' : '元素精通'},{'value' : '元素充能效率','name' : '元素充能效率'},{'value' : '暴击率','name' : '暴击率'},{'value' : '暴击伤害','name' : '暴击伤害'},{'value' : '火元素伤害加成','name' : '火元素伤害加成'},{'value' : '风元素伤害加成','name' : '风元素伤害加成'},{'value' : '水元素伤害加成','name' : '水元素伤害加成'},{'value' : '雷元素伤害加成','name' : '雷元素伤害加成'},{'value' : '冰元素伤害加成','name' : '冰元素伤害加成'},{'value' : '岩元素伤害加成','name' : '岩元素伤害加成'},{'value' : '草元素伤害加成','name' : '草元素伤害加成'},{'value' : '物理伤害加成','name' : '物理伤害加成'},{'value' : '治疗加成','name' : '治疗加成'},{'value' : '防御力','name' : '防御力'}]"

                                         data-selected="{{=d.bottom_assist1_role_recommend}}"
                                    ></div>
                                </div>
                            </div>
                        </div>
                        <blockquote class="layui-elem-quote">位置4</blockquote>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label">角色</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="bottom_assist2_role_id"
                                         data-sourceType="route"
                                         data-source="/admin.genshinteam.role/index"
                                         data-textField="role_name"
                                         data-valueField="id"
                                         data-paging="true"
                                         data-radio="true"
                                         data-direction="down"
                                         data-selected="{{=d.bottom_assist2_role_id}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">位置</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="bottom_assist2_role_pos"
                                         data-sourceType="data"
                                         data-radio="true"
                                         data-source="[{name:'主C',value:'主C'},{name:'副C',value:'副C'},{name:'辅助',value:'辅助'},{name:'治疗',value:'治疗'}]"
                                         data-selected="{{=d.bottom_assist2_role_pos}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">武器</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="bottom_assist2_role_weapon"
                                         data-sourceType="route"
                                         data-source="/admin.genshinteam.weapon/weapon"
                                         data-textField="name"
                                         data-valueField="weapon_id"
                                         data-paging="true"
                                         data-radio="true"
                                         data-direction="down"
                                         data-selected="{{=d.bottom_assist2_role_weapon}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">圣遗物</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="bottom_assist2_role_relics"
                                         data-sourceType="route"
                                         data-source="/admin.genshinteam.relics/relics"
                                         data-textField="relics_name"
                                         data-valueField="id"
                                         data-paging="true"
                                         data-radio="false"
                                         data-max="2"
                                         data-direction="down"
                                         data-selected="{{=d.bottom_assist2_role_relics}}"
                                    ></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">主词条</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-name="bottom_assist2_role_tag"
                                         data-sourceType="data"
                                         data-radio="false"
                                         data-max="3"
                                         data-source="[{'value' : '生命值','name' : '生命值'},{'value' : '攻击力','name' : '攻击力'},{'value' : '攻击力百分比','name' : '攻击力百分比'},{'value' : '生命值百分比','name' : '生命值百分比'},{'value' : '防御力百分比','name' : '防御力百分比'},{'value' : '元素精通','name' : '元素精通'},{'value' : '元素充能效率','name' : '元素充能效率'},{'value' : '暴击率','name' : '暴击率'},{'value' : '暴击伤害','name' : '暴击伤害'},{'value' : '火元素伤害加成','name' : '火元素伤害加成'},{'value' : '风元素伤害加成','name' : '风元素伤害加成'},{'value' : '水元素伤害加成','name' : '水元素伤害加成'},{'value' : '雷元素伤害加成','name' : '雷元素伤害加成'},{'value' : '冰元素伤害加成','name' : '冰元素伤害加成'},{'value' : '岩元素伤害加成','name' : '岩元素伤害加成'},{'value' : '草元素伤害加成','name' : '草元素伤害加成'},{'value' : '物理伤害加成','name' : '物理伤害加成'},{'value' : '治疗加成','name' : '治疗加成'},{'value' : '防御力','name' : '防御力'}]"

                                         data-selected="{{=d.bottom_assist2_role_tag}}"
                                    ></div>
                                </div>
                            </div>

                            <div class="layui-inline">
                                <label class="layui-form-label">副词条推荐</label>
                                <div class="layui-input-block two-part-label">
                                    <div class="xmSelect"
                                         data-layVerify="require"
                                         data-name="bottom_assist2_role_recommend"
                                         data-sourceType="data"
                                         data-radio="false"
                                         data-source="[{'value' : '生命值','name' : '生命值'},{'value' : '攻击力','name' : '攻击力'},{'value' : '攻击力百分比','name' : '攻击力百分比'},{'value' : '生命值百分比','name' : '生命值百分比'},{'value' : '防御力百分比','name' : '防御力百分比'},{'value' : '元素精通','name' : '元素精通'},{'value' : '元素充能效率','name' : '元素充能效率'},{'value' : '暴击率','name' : '暴击率'},{'value' : '暴击伤害','name' : '暴击伤害'},{'value' : '火元素伤害加成','name' : '火元素伤害加成'},{'value' : '风元素伤害加成','name' : '风元素伤害加成'},{'value' : '水元素伤害加成','name' : '水元素伤害加成'},{'value' : '雷元素伤害加成','name' : '雷元素伤害加成'},{'value' : '冰元素伤害加成','name' : '冰元素伤害加成'},{'value' : '岩元素伤害加成','name' : '岩元素伤害加成'},{'value' : '草元素伤害加成','name' : '草元素伤害加成'},{'value' : '物理伤害加成','name' : '物理伤害加成'},{'value' : '治疗加成','name' : '治疗加成'},{'value' : '防御力','name' : '防御力'}]"

                                         data-selected="{{=d.bottom_assist2_role_recommend}}"
                                    ></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>


            <!--div class="layui-form-item">
                <label class="layui-form-label">
                    元素共鸣</label>
                <div class="layui-input-block">
                    <input type="text" placeholder="请输入元素共鸣名称" class="layui-input" lay-verify="required"
                           autocomplete="off" value="{{ d.reaction}}">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label"><text style="color:red;">*</text>共鸣元素</label>
                <div class="layui-input-block">
                    <div class="xmSelect"
                         data-name="reaction_ele1"
                         data-sourceType="data"
                         data-radio="false"
                         data-max="1"
                         data-source="[{name:'anemo',value:'anemo'},{name:'cryo',value:'cryo'},{name:'electro',value:'electro'},{name:'geo',value:'geo'},{name:'hydro',value:'hydro'},{name:'pyro',value:'pyro'}]"
                         data-selected="{{=d.reaction_ele1}}"
                         data-layVerify="require"
                    ></div>
                </div>

                <div class="layui-input-block" style="margin-top: 5px">
                    <div class="xmSelect"
                         data-name="reaction_ele2"
                         data-sourceType="data"
                         data-radio="false"
                         data-max="1"
                         data-source="[{name:'anemo',value:'anemo'},{name:'cryo',value:'cryo'},{name:'electro',value:'electro'},{name:'geo',value:'geo'},{name:'hydro',value:'hydro'},{name:'pyro',value:'pyro'}]"
                         data-selected="{{=d.reaction_ele2}}"
                         data-layVerify="require"
                    ></div>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">
                    <text style="color:red;">*</text>
                    元素共鸣效果</label>
                <div class="layui-input-block">
                    <input type="text" placeholder="请输入元素共鸣效果" class="layui-input" lay-verify="required"
                           autocomplete="off" value="{{ d.reaction_desc}}">
                </div>
            </div-->


            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label"><text style="color:red;">*</text>阵容描述</label>
                <div class="layui-input-block">
                    <textarea placeholder="请输入阵容描述" name="team_desc" class="layui-textarea" lay-verify="required">{{ d.team_desc}}</textarea>
                </div>
            </div>

        </div>
    </div>
    <div class="bottom">
        <div class="button-container">
            <button type="submit" class="laytp-btn laytp-btn-primary laytp-btn-sm" lay-submit="" lay-filter="laytp-form">
                <i class="layui-icon layui-icon-ok"></i>
                提交
            </button>
            <button type="reset" class="laytp-btn laytp-btn-sm">
                <i class="layui-icon layui-icon-refresh"></i>
                重置
            </button>
        </div>
    </div>
</script>
<form class="layui-form" lay-filter="layui-form"></form>
<script>
    if(localStorage.getItem("staticDomain")){
        document.write("<link rel='stylesheet' href='" + localStorage.getItem("staticDomain") + "/component/layui/css/layui.css?v=" + localStorage.getItem("version") + "'>");
        document.write("<script src='" + localStorage.getItem("staticDomain") + "/component/layui/layui.js?v="+localStorage.getItem("version")+"'><\/script>");
        document.write("<script src='" + localStorage.getItem("staticDomain") + "/component/laytp/layuiConfig.js?v="+localStorage.getItem("version")+"'><\/script>");
    }else{
        document.write("<link rel='stylesheet' href='/static/component/layui/css/layui.css?v=" + localStorage.getItem("version") + "'>");
        document.write("<script src='/static/component/layui/layui.js?v="+localStorage.getItem("version")+"'><\/script>");
        document.write("<script src='/static/component/laytp/layuiConfig.js?v="+localStorage.getItem("version")+"'><\/script>");
    }
</script>
<script>
    function showTeamBox(){
        var is_show = $('#under_team').attr('is_show');
        if(is_show == 1){
            $('#under_team').attr('is_show',0);
            $('#under_team').css('display','none');
            $('#under_team .xmSelect').attr('data-layVerify','');
        }else{
            $('#under_team').attr('is_show',1);
            $('#under_team').css('display','block');
            $('#under_team .xmSelect').attr('data-layVerify','required');
        }
    }

    layui.use(['laytp','admin'],function(){
        let form = layui.form;
        let $ = layui.jquery;
        //获取参数ID
        var id = facade.getUrlParam('id');
        if(!id){
            facade.error('参数ID不能为空');
            return false;
        }
        //获取数据，渲染到对应的节点上
        facade.ajax({
            route: "/admin.genshinteam.team/info",
            data: {id: id},
            successAlert: false,
            showLoading: true
        }).done(function(res){
            if(res.code === 0){

                layui.laytpl($("#form").html()).render(res.data,function(string){
                    $("form").html(string);
                    layui.laytpForm.render();
                    form.render();
                });
                if(res.data.bottom_main_role_id != null && res.data.bottom_main_role_id != 0){
                    $('#under_team').attr('is_show',1);
                    $('#under_team').css('display','block');
                    $('#under_team .xmSelect').attr('data-layVerify','required');
                }
            }
        });

        form.on('submit(laytp-form)', function(data){
            var btnAnim = layui.button.load({elem:$(this)});
            facade.ajax({
                route:'/admin.genshinteam.team/edit',
                data:data.field
            }).done(function(res){
                if(res.code === 0){
                    parent.layui.layer.close(parent.layui.layer.getFrameIndex(window.name));//关闭当前页
                    parent.funController.tableRender();
                    parent.parent.renderMenu();//重新渲染菜单
                }
                btnAnim.stop();
            }).fail(function(){
                btnAnim.stop();
            });
            return false;
        });
    })
</script>
</body>
</html>